---
category: DOM
created: '2020-05-09'
title: Detect Internet Explorer browser
updated: '2021-10-13'
---

**JavaScript version**

```js isIE.js
const isIE = !!document.documentMode;
```

**TypeScript version**

```ts isIE.ts
const isIE = !!(document as any).documentMode;
```
